package com.fanrenqiji.entity;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.util.Date;

/**
 *
 *
 */

@Entity
@Table(name = "tb_parent_daily_score")
@org.hibernate.annotations.Table(appliesTo = "tb_parent_daily_score",comment = "家长事件记录表")
@org.hibernate.annotations.DynamicInsert
@org.hibernate.annotations.DynamicUpdate
@org.hibernate.annotations.Cache(region="parent_daily_score", usage = CacheConcurrencyStrategy.READ_WRITE)
public class ParentDailyScoreEntity extends DataEntity{
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private Long id;

    @ManyToOne
    @JoinColumn(name="parent_id",columnDefinition = ("bigint(20) default null comment '家长ID'"))//,foreignKey = @ForeignKey(value=ConstraintMode.NO_CONSTRAINT))
    @Where(clause = "del_flag=" + DEL_FLAG_NORMAL)
    private ParentEntity parent;

    @ManyToOne
    @JoinColumn(name="semester_id",columnDefinition=("bigint(20) default null comment '学期ID'"))//,foreignKey = @ForeignKey(value=ConstraintMode.NO_CONSTRAINT))
    @Where(clause="del_flag="+DEL_FLAG_NORMAL)
    private SemesterEntity semester;


    @Column(name="date",columnDefinition=("date default null comment '日期'"))
    private Date date;
   @Column(name="tapeall",columnDefinition=("int(11) default 0 comment '后台推送录音总次数'"))
    private int tapeall;
    @Column(name="dotape",columnDefinition=("int(11) default 0 comment '家长完成录音次数'"))
    private int dotape;

    @Column(name="videotapeall",columnDefinition=("int(11) default 0 comment '后台录像总次数'"))
    private int videotapeall;
    @Column(name="dovideotape",columnDefinition=("int(11) default 0 comment '家长录像完成次数'"))
    private int dovideotape;

    @Column(name="photographall",columnDefinition=("int(11) default 0 comment '后台推送拍照总次数'"))
    private int photographall;
    @Column(name="dophotograph",columnDefinition=("int(11) default 0 comment '家长拍照完成次数'"))
    private int dophotograph;

    @Column(name="timeall",columnDefinition=("int(11) default 0 comment '后台推送计时总次数'"))
    private int timeall;
    @Column(name="dotime",columnDefinition=("int(11) default 0 comment '家长计时完成次数'"))
    private int dotime;

    @Column(name="countall",columnDefinition=("int(11) default 0 comment '后台推送计数总次数'"))
    private int countall;
    @Column(name="docount",columnDefinition=("int(11) default 0 comment '家长完成计数次数'"))
    private int docount;

    @Column(name="evaluateall",columnDefinition=("int(11) default 0 comment '后台推送评价总次数'"))
    private int evaluateall;
    @Column(name="doevaluate",columnDefinition=("int(11) default 0 comment '家长完成评价次数'"))
    private int doevaluate;

    @Column(name="scoreall",columnDefinition=("int(11) default 0 comment '后台推送计分总次数'"))
    private int scoreall;
    @Column(name="doscore",columnDefinition=("int(11) default 0 comment '家长完成计分次数'"))
    private int doscore;

    @Column(name="homeworkall",columnDefinition=("int(11) default 0 comment '后台推送作业总次数'"))
    private int homeworkall;
    @Column(name="dohomework",columnDefinition=("int(11) default 0 comment '家长完成作业次数'"))
    private int dohomework;

    @Column(name="answerall",columnDefinition=("int(11) default 0 comment '后台推送答案总次数'"))
    private int answerall;
    @Column(name="doanswer",columnDefinition=("int(11) default 0 comment '家长完成答案次数'"))
    private int doanswer;

    @Column(name="knowledge",columnDefinition=("int(11) default 0 comment '后台推送知识点总次数'"))
    private int knowledge;
    @Column(name="doknowledge",columnDefinition=("int(11) default 0 comment '家长完成知识点数'"))
    private int doknowledge;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public ParentEntity getParent() {
        return parent;
    }

    public void setParent(ParentEntity parent) {
        this.parent = parent;
    }

    public SemesterEntity getSemester() {
        return semester;
    }

    public void setSemester(SemesterEntity semester) {
        this.semester = semester;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public int getTapeall() {
        return tapeall;
    }

    public void setTapeall(int tapeall) {
        this.tapeall = tapeall;
    }

    public int getDotape() {
        return dotape;
    }

    public void setDotape(int dotape) {
        this.dotape = dotape;
    }

    public int getVideotapeall() {
        return videotapeall;
    }

    public void setVideotapeall(int videotapeall) {
        this.videotapeall = videotapeall;
    }

    public int getDovideotape() {
        return dovideotape;
    }

    public void setDovideotape(int dovideotape) {
        this.dovideotape = dovideotape;
    }

    public int getPhotographall() {
        return photographall;
    }

    public void setPhotographall(int photographall) {
        this.photographall = photographall;
    }

    public int getDophotograph() {
        return dophotograph;
    }

    public void setDophotograph(int dophotograph) {
        this.dophotograph = dophotograph;
    }

    public int getTimeall() {
        return timeall;
    }

    public void setTimeall(int timeall) {
        this.timeall = timeall;
    }

    public int getDotime() {
        return dotime;
    }

    public void setDotime(int dotime) {
        this.dotime = dotime;
    }

    public int getCountall() {
        return countall;
    }

    public void setCountall(int countall) {
        this.countall = countall;
    }

    public int getDocount() {
        return docount;
    }

    public void setDocount(int docount) {
        this.docount = docount;
    }

    public int getEvaluateall() {
        return evaluateall;
    }

    public void setEvaluateall(int evaluateall) {
        this.evaluateall = evaluateall;
    }

    public int getDoevaluate() {
        return doevaluate;
    }

    public void setDoevaluate(int doevaluate) {
        this.doevaluate = doevaluate;
    }

    public int getScoreall() {
        return scoreall;
    }

    public void setScoreall(int scoreall) {
        this.scoreall = scoreall;
    }

    public int getDoscore() {
        return doscore;
    }

    public void setDoscore(int doscore) {
        this.doscore = doscore;
    }

    public int getHomeworkall() {
        return homeworkall;
    }

    public void setHomeworkall(int homeworkall) {
        this.homeworkall = homeworkall;
    }

    public int getDohomework() {
        return dohomework;
    }

    public void setDohomework(int dohomework) {
        this.dohomework = dohomework;
    }

    public int getAnswerall() {
        return answerall;
    }

    public void setAnswerall(int answerall) {
        this.answerall = answerall;
    }

    public int getDoanswer() {
        return doanswer;
    }

    public void setDoanswer(int doanswer) {
        this.doanswer = doanswer;
    }

    public int getKnowledge() {
        return knowledge;
    }

    public void setKnowledge(int knowledge) {
        this.knowledge = knowledge;
    }

    public int getDoknowledge() {
        return doknowledge;
    }

    public void setDoknowledge(int doknowledge) {
        this.doknowledge = doknowledge;
    }
}
